package org.grow.leave.exception;

/**
 * @Author: xwg
 * @CreateDate: 2021/10/20
 */


public class LeaveException extends RuntimeException {
    private Integer code;
//  auth模块 controller 里的异常
//  720 默认
//  721 722 723 ...拓展
    public LeaveException(String message, Integer code) {
        super(message);
        this.code = code;
    }
    public LeaveException(String message) {
        super(message);
        this.code = 819;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
